import { Application, Session } from "mydog";
import doudizhuManager from "../../../app/game/doudizhu/doudizhuManager";
import { doudizhu_msg } from "../../../config/proto/doudizhu";

export default class Handler {
  private app: Application;
  constructor(app: Application) {
    this.app = app;
  }

  public qiangdizhu(msg: doudizhu_msg.c2s_qiangdizhu, session: Session) {
    const uid = session.uid;
    const rid = session.get('rid') as number;
    const score = msg.score;

    if (!!!uid || !!!rid) { return; }

    doudizhuManager.onQiangdizhu(rid, uid, score);
  }


}
